package cn.ydw.community.service;

import cn.ydw.community.dao.CommentDao;
import cn.ydw.community.entity.Comment;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dw
 * @since 2020-10-18
 */
public interface CommentService extends IService<Comment> {


    List<Comment> findCommentsByEntity(Page page, Integer entityType, Integer EntityId);


    int addComment(Comment comment);

    Comment findCommentById(int id);


}
